package com.amigo.online.provider.user.mongo.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * @author kml
 * @version 1.0
 * @className GroupEntity
 * @description
 * @date 2019/4/2 15:07
 **/
@Document(collection = "groupEntity")
public class GroupEntity {
    @Id
    private Long id;
    /*群主ID*/
    private Long user_id;

    /*名称*/
    private String name;

    /*头像*/
    private String avatar;

    /*介绍*/
    private String introduction;

    private Integer country;

    private Integer province;

    private Integer city;

    private String address;

    /**
     * 定位的地址name
     */
    private String addressName;

    /**
     * 状态：1为正常，0为禁用
     */
    private Integer status;

    private Long checked_time;

    /**
     * 是否解散 1解散  0未解散
     */
    private Integer disbanded;
    /**
     * 是否隐身
     */
    private Integer invisible;

    /**
     * 解散时间
     */
    private Long disbanded_time;

    private Long updated_time;

    private Long created_user_id;

    private GeoJsonPoint loc;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getCountry() {
        return country;
    }

    public void setCountry(Integer country) {
        this.country = country;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getChecked_time() {
        return checked_time;
    }

    public void setChecked_time(Long checked_time) {
        this.checked_time = checked_time;
    }

    public Integer getDisbanded() {
        return disbanded;
    }

    public void setDisbanded(Integer disbanded) {
        this.disbanded = disbanded;
    }

    public Long getDisbanded_time() {
        return disbanded_time;
    }

    public void setDisbanded_time(Long disbanded_time) {
        this.disbanded_time = disbanded_time;
    }

    public Long getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(Long updated_time) {
        this.updated_time = updated_time;
    }

    public Long getCreated_user_id() {
        return created_user_id;
    }

    public void setCreated_user_id(Long created_user_id) {
        this.created_user_id = created_user_id;
    }

    public GeoJsonPoint getLoc() {
        return loc;
    }

    public void setLoc(GeoJsonPoint loc) {
        this.loc = loc;
    }

    public Integer getInvisible() {
        return invisible;
    }

    public void setInvisible(Integer invisible) {
        this.invisible = invisible;
    }

    @Override
    public String toString() {
        return "GroupEntity{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", introduction='" + introduction + '\'' +
                ", country=" + country +
                ", province=" + province +
                ", city=" + city +
                ", address='" + address + '\'' +
                ", addressName='" + addressName + '\'' +
                ", status=" + status +
                ", checked_time=" + checked_time +
                ", disbanded=" + disbanded +
                ", invisible=" + invisible +
                ", disbanded_time=" + disbanded_time +
                '}';
    }
}
